package com.smartmedical.system.service.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.smartmedical.system.domain.User;
import com.smartmedical.system.mapper.UserMapper;
import com.smartmedical.system.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
@DS("slave")
public class UserServiceImpl implements UserService {
    @Autowired
    public UserMapper userMapper;

    @Override
    public User selectUserByUserName(String email) {
        if (email != null) {
            return userMapper.selectUserByUserName(email);
        }
        return null;
    }
}
